package org.mparts.client.ui;

import java.util.List;

import org.mparts.shared.proxy.NewsProxy;

import com.google.gwt.user.client.ui.IsWidget;
import com.sencha.gxt.data.shared.ListStore;
import com.sencha.gxt.data.shared.loader.ListLoadConfig;
import com.sencha.gxt.data.shared.loader.ListLoadResult;
import com.sencha.gxt.data.shared.loader.RequestFactoryProxy;

public interface INewsView extends IsWidget {
	public void setPresenter(INewsPresenter presenter);
	
	public ListStore<NewsProxy> getStore();

    public interface INewsPresenter {
    	public static enum ACTIONS { ADD, EDIT, DELETE };
		INewsView getView();
		public void actionNews(NewsProxy item, ACTIONS action);
    }

	public void loadStore();
	public void showToolBar(boolean show);

	void setProxy(
			RequestFactoryProxy<ListLoadConfig, ListLoadResult<NewsProxy>> proxy);
    
}
